if foundation[i].getlastcard().rankvalue <> 1 then
exit repeat
end if
end if
if foundation[i].cards[1].rank = "seven" then
if foundation[i].getlastcard().rankvalue <> 13 then
exit repeat
end if
end if
if i <> foundation.count then
next repeat
end if
win = "yes"
pootimer = timeout("poo").new(130, #gotoit)
end repeat
end
on checklose
if stock.cards.count = 0 then
if deals = 1 then
repeat with shits = 30 to 38
if sprite(shits).member.name = "empty" then
next repeat
end if
repeat with asshole in [13, 16, 23, 24, 25, 26, 27, 28]
if (getValue(sprite(shits).member.name) = (getValue(sprite(asshole).member.name) - 1)) and (getSuit(sprite(shits).member.name) = getSuit(sprite(asshole).member.name)) then
abort()
end if
end repeat
repeat with fucknut in [14, 15, 17, 18, 19, 20, 21, 22]
if (getValue(sprite(shits).member.name) = (getValue(sprite(fucknut).member.name) + 1)) and (getSuit(sprite(shits).member.name) = getSuit(sprite(fucknut).member.name)) then
abort()
end if
end repeat
end repeat
win = "no"
pootimer = timeout("poo").new(130, #gotoit)
end if
end if
end
on gotoit
pootimer.forget()
go("gameover")
end
on getValue arg
if (arg contains "hearts") or (arg contains "spades") then